<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<style type="text/css">
input {
	margin-top: 5px;
	margin-bottom: 5px;
}

select {
	margin-top: 5px;
	margin-bottom: 5px;
}
</style>
<script type="text/javascript">
	function fun() {
		var username = $("#username").val();
		var name = $("#name").val();
		var sex = $("#sex").val();
		var post = $("#post").val();
		$("#ddd").load(
				"${pageContext.request.contextPath}/xiugai?method=studentxg&id=${str.id}&username="
						+ username + "&name=" + name+"&sex="+sex+"&post="+post);
		$('#id2').dialog('close');
	}
</script>
<form
	method="post">
	<div style="width: 240px; margin-left: 30px;">
		学号：<input id="username" value="${str.username}" type="text"><br />
		姓名：<input id="name" value="${str.name}" type="text"><br /> 性别：<select
			id="sex">
			<option>男</option>
			<option>女</option>
		</select><br /> 职务：<input id="post" value="${str.post}" type="text"><br />
		<button type="button" style="margin-right: 20px; margin-left: 40px"
			onclick="fun()" class="btn btn-primary btn btn-sm btn-lg bbb">保存</button>
		<button type="reset" class="btn btn-primary btn btn-sm btn-lg bbb">重置</button>
	</div>
</form>
